package com.service.tag.domain;

import java.sql.Timestamp;
import java.util.HashMap;
import java.util.Map;

import com.service.tag.key.TagKey;


public class Tag
{
	private int id;
    
	private String name;
	
    private Timestamp modifiedTime;
    
    private Map<TagKey, TagAttribute> attributes = new HashMap<TagKey, TagAttribute>();
 
 	public Tag()
	{
	}
	
 	
	public int getId()
	{
		return id;
	}
	
	public void setId(int id)
	{
		this.id = id;
	}
	
	public String getName()
	{
		return name;
	}
	
	public void setName(String name)
	{
		this.name = name;
	}
	
	public Timestamp getModifiedTime()
	{
		return modifiedTime;
	}
	
	public void setModifiedTime(Timestamp modifiedTime)
	{
		this.modifiedTime = modifiedTime;
	}
	
	public void putAttribute(TagKey key, TagAttribute tagAttri)
	{
		attributes.put(key, tagAttri);
	}
	
	public Map<TagKey, TagAttribute> getAttributes()
	{
		return attributes;
	}
}
